package kvoog.arkanoid.core;

import java.util.HashMap;
import java.util.Map;

import com.artemis.Component;

public class KeyInputReceiver extends Component {

	public class KeyInputData {
		public int keycode;
		public boolean toggle;
		public boolean pressed = false;
	}
	
	public Map<String,KeyInputData> keyMapping = new HashMap<String,KeyInputData>();
	
	public void addMapping(String name, int keycode, boolean toggle) {
		KeyInputData kiData = new KeyInputData();
		kiData.keycode = keycode;
		kiData.toggle = toggle;
		keyMapping.put(name, kiData);
	}
}
